#pragma once

#include "Defines.hpp"
#include "HotAreaManager.hpp"

class TimeServer : public SocketTcpServer
{
public:
	TimeServer();
	virtual ~TimeServer();

	bool initialize();

	void run();

	void exit();

	void setTimeStart();

	void loadConfigFromAgent(Agent::WorkNodeRegisterRet* args);
protected:
	virtual void onAccept(SocketBasePtr pRemoteSocket);
private:
	HotAreaManager mHotAreaManager;
};
